package com.xo.xodemo.mapper.db1;

import com.xo.xodemo.model.Menu;
import com.xo.xodemo.model.Position;
import com.xo.xodemo.model.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface PositionMapper {
    List<Position> findAll();
    List<Role> findRole(@Param("positionId") String positionId);
    int addPositionRole(@Param("roleList") List<String> roleList,@Param("positionId") String positionId);
    int deletePositionRole(@Param("roleList") List<String> roleList,@Param("positionId") String positionId);
    int  addPosition(@Param("positionName") String positionName);
    String  findPositionNameByPositionId(@Param("positionId") Integer positionId);
    List<String> findXiaoShouNeiQin();
    Position findPositonByName(@Param("positionName") String positonName);

    int deleteOnePosition(Integer positionId);
}
